package com.day0907;

import java.util.Scanner;

public class Text10 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("请输入你的会员卡号：");
        int num = in.nextInt();
        System.out.println("你的会员卡号为：" + num);
        int numB = num % 1000 / 100;
        int s = (int)(Math.random() * 10);
        if(numB == s){
            System.out.println("恭喜你，中奖了！");
        }
        else {
            System.out.println("很遗憾，你没有中奖！");
        }
    }
}
